﻿<Fluent:RibbonWindow x:Class="EPE.WPF.FluentMainForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        xmlns:my="clr-namespace:EPE.WPF"
        Title="房地产价格评估系统"  Height="768" Width="1024" Icon="Resources/image/m.gif" SizeToContent="Manual"  Background="White" WindowState="Maximized" WindowStartupLocation="CenterScreen">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>

        <Fluent:Ribbon Grid.Row="0">
            <Fluent:Ribbon.QuickAccessItems>
                <Fluent:QuickAccessMenuItem IsChecked="true">
                    <Fluent:Button Name="btnHelp"  Icon="/resources/Image/help.png" Header="帮助">
                    </Fluent:Button>
                </Fluent:QuickAccessMenuItem>
            </Fluent:Ribbon.QuickAccessItems>

            <Fluent:RibbonTabItem Header="系统管理" x:Name="sys">
                <Fluent:RibbonGroupBox Header="">
                    <Fluent:Button Name="btnUser" Header="用户管理"  LargeIcon="Resources/image/in.gif" Click="btnUser_Click"  />
                    <Fluent:Button Name="btnDepartmentInfo" Icon="Resources/Image/menu_09.gif" LargeIcon="Resources/Image/menu_09.gif" Header="机构管理" Click="btnDepartmentInfo_Click">
                    </Fluent:Button>
                    <Fluent:Button Name="btnRole" Header="权限管理" LargeIcon="Resources/image/out.gif" Click="btnRole_Click"  />
                    <Fluent:Button Name="btnLog" Icon="Resources/Image/menu_06.gif" LargeIcon="Resources/Image/menu_14.gif" Header="系统日志" Click="btnLog_Click">
                    </Fluent:Button>
                    <Fluent:Button Name="btnPassword" Icon="Resources/Image/pwd.gif" LargeIcon="Resources/Image/pwd.gif" Header="修改密码" Click="btnPassword_Click">
                    </Fluent:Button>
                    <Fluent:Button Name="btnPrinter" Icon="Resources/Image/print.gif" LargeIcon="Resources/Image/print.gif" Header="打印机设置" Click="btnPrinter_Click">
                    </Fluent:Button>
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>

            <Fluent:RibbonTabItem Header="商铺管理" x:Name="ShopsProject">
                <Fluent:RibbonGroupBox Header="">
                    <Fluent:Button Name="btnProject" Header="项目"  LargeIcon="Resources/image/in.gif" Click="btnProject_Click"  />
                    <Fluent:Button Name="btnPara" Header="价格数管理"  LargeIcon="Resources/image/out.gif" Click="btnPara_Click"  />
                    <Fluent:Button Name="btnBuild" Header="楼栋管理"  LargeIcon="Resources/image/in.gif" Click="btnBuild_Click"  />
                    <Fluent:Button Name="btnShops" Header="铺面管理"  LargeIcon="Resources/image/in.gif" Click="btnShops_Click"  />
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>


            <Fluent:RibbonTabItem Header="住宅管理" x:Name="HouseProject">
                <Fluent:RibbonGroupBox Header="">
                    <Fluent:Button Name="btnHouseProjectt" Header="项目" LargeIcon="Resources/image/in.gif" Click="btnHouseProjectt_Click"  />
                    <Fluent:Button Name="btnHousePara" Header="价格数管理"  LargeIcon="Resources/image/out.gif" Click="btnHousePara_Click"  />
                    <Fluent:Button Name="btnHouseBuild" Header="楼栋管理" LargeIcon="Resources/image/in.gif" Click="btnHouseBuild_Click"  />
                    <Fluent:Button Name="btnHouse" Header="房号管理"  LargeIcon="Resources/image/in.gif" Click="btnHouse_Click"  />

                </Fluent:RibbonGroupBox>
                </Fluent:RibbonTabItem>



        </Fluent:Ribbon>

        <ScrollViewer x:Name="c"  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1" Style="{StaticResource ScrollViewerStyle}">

            <Canvas Name="cvMain" Width="1024" Height="650" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,10,0,0">
                <!--<Canvas.Background>
                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Color="White" Offset="1"/>
                        <GradientStop Color="#FF979797" Offset="0.009"/>
                        <GradientStop Color="LightGray" Offset="0.039"/>
                    </LinearGradientBrush>
                </Canvas.Background>
                <my:UCVisitorAdd  x:Name="uCVisitorAdd1" />-->
            </Canvas>
        </ScrollViewer>

        <StatusBar Height="23" Grid.Row="2">
            <StatusBarItem  Content="当前用户:" Name="lblUser"></StatusBarItem>
            <StatusBarItem Name="txtUser"></StatusBarItem>
            <StatusBarItem  Content="当前登录帐户:" Name="lblLoginName"></StatusBarItem>
            <StatusBarItem  Content="" Name="txtLoginName"></StatusBarItem>
            <StatusBarItem  Content="" Name="txtTime" HorizontalAlignment="Center"></StatusBarItem>
            <StatusBarItem  Content="版权所有:" HorizontalAlignment="Right"  Foreground="Red" ></StatusBarItem>
        </StatusBar>
    </Grid>
</Fluent:RibbonWindow>
